package com.example.rpinfrastructure.gateway.impl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.rpclient.dto.query.PrizeListByParamQuery;
import com.example.rpinfrastructure.gateway.impl.dataobject.PrizeDB;
import org.apache.ibatis.annotations.Param;


/**
* @author 是英健啊
* @description 针对表【bld_prize】的数据库操作Mapper
* @createDate 2023-07-30 17:00:39
* @Entity com.example.rpuser.po.Prize
*/
public interface PrizeMapper extends BaseMapper<PrizeDB> {

    IPage<PrizeDB> page(@Param("page") Page<PrizeDB> prizeDBPage, @Param("query") PrizeListByParamQuery query);



    int deductionInventory(@Param("prizeId") Long prizeId, @Param("number") Integer number);
}




